﻿#include "stdafx.h"
#include "BuffMgr.h"
#include "DefInfo/GameInfo.h"
#include "DefInfo/Team_Raid_Info.h"

BuffMgr::BuffMgr()
{
}


BuffMgr::~BuffMgr()
{
}

BuffData BuffMgr::Get(SpellID spell_id)
{
	BuffData ret;
	auto& map_a = GameInfo::inst().player_info->map_buff_;
	auto it = map_a.find(spell_id);
	if (it != map_a.end())
	{
		auto& buff_aura = it->second;
		ret.remains = buff_aura.duration;
		ret.stack = buff_aura.stack;
	}
	return std::move(ret);
}
